package org.jgs1904.oopbase.practice.polymorphic;

/**
 * @author 墨苍璃
 */
public class Income {

    protected double income;

    public Income(double income) {
        this.income = income;
    }

    public double getTax() {
        // 税率10%
        return income * 0.1;
    }

}
